﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

using AjaxControlFramework;

namespace BingMapsSample.Components
{
    public class BaseControl : UserControl
    {
        //------// Properties \\--------------------------------------------\\
        private SearchResultsController _searchResultsController = null;
        public SearchResultsController SearchResultsController
        {
            get
            {
                if (_searchResultsController == null)
                {
                    _searchResultsController = new SearchResultsController();
                }

                return _searchResultsController;
            }
        }


        private Default _parentPage = null;
        public Default ParentPage
        {
            get
            {
                if (_parentPage == null)
                {
                    _parentPage = (Default)base.Page;
                }

                return _parentPage;
            }
        }
        //------\\ Properties //--------------------------------------------//



        //------// Constructors \\------------------------------------------\\
        public BaseControl()
        { }
        //------\\ Constructors //------------------------------------------//



        //------// Methods \\-----------------------------------------------\\

        //------\\ Methods //-----------------------------------------------//
    }
}
